SPEAK

Section: Nov (3)
Updated:
Index Return to Main Contents
 

NAME

speak --- library of routines to make your sparcstation talk  

SYNOPSIS

speak_load_samples (dir)
char *dir;

fd = speak_open (device, now)
int fd;
char *device;
int now;

speak_string (fd, str)
int fd;
char *str;

speak_file (fd, filename)
int fd;
char *filename;

speak_volume (vol)
double vol;

speak_delay (fd, delay)
int fd;
int delay;

speak_close (fd)
int fd;
 

DESCRIPTION

These routines facilitate the translation of english ascii text to sound. English words are translated into phonemes, and the phonemes, which are previously recorded, are written to the audio device.

speak_load_samples() loads audio samples of phonemes contained in directory dir, each file named for its corresponding phoneme. Audio sample files should be in Sun/NeXT audio file format. If this routine is not called, a default set of phonemes is used.

speak_open() opens the audio device.

speak_string() translates the english text contained in str and sends the resulting audio data to the audio device.

speak_file() translates the english text contained in the file filename and sends the resulting audio data to the audio device.

speak_phoneme() sends the audio data corresponding to phoneme to the audio device.

speak_volume() sets the volume to vol, which should be a double precision number between 0 and 1, inclusive.

speak_delay() releases the audio device for use by other processes, without closing it.

speak_close() closes the audio device.  

SEE ALSO

audio(4), audio_intro(3), audio_device(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:32:03 GMT, December 02, 2024